package com.framwork.core.api;

import com.framwork.core.api.accessToken.AccessTokenClient;
import com.framwork.core.api.addressbook.AddressBookClient;
import com.framwork.core.config.APIClientConfiguration;

/**
 * @author ：james.liu
 * @date ：Created in 2022/2/18 11:42
 * @description：
 * @version: 1.0
 */
public class FeiShuAPIClient {

    /*配置中心参数*/
    private final APIClientConfiguration configuration;
    /*API访问凭证*/
    private final AccessTokenClient accessTokenClient;
    /*通讯录客户端*/
    private final AddressBookClient addressBookClient;

    public FeiShuAPIClient(final APIClientConfiguration configuration) {
        this.configuration = configuration;
        this.addressBookClient = new AddressBookClient(configuration);
        this.accessTokenClient = new AccessTokenClient(configuration);
    }

    public APIClientConfiguration getConfiguration() {
        return configuration;
    }

    public AddressBookClient getAddressBookClient() {
        return addressBookClient;
    }

    public AccessTokenClient getAccessTokenClient() {
        return accessTokenClient;
    }
}
